import request from '@/utils/request'
import Qs from 'qs'

// 订单查询
export function GetOrder(data) {
    return request({
        url: "/personal/ShowOrder",
        method: 'post',
        data: Qs.stringify(data)
    })
}
// 绑定学员-获取校区
export function LoadContent(data) {
    return request({
        url: 'personal/LoadContent',
        method: 'post',
        data: Qs.stringify(data)
    })
}
// 绑定学员-提交
export function BindStudent(data) {
    return request({
        url: '/personal/BindStudent',
        method: 'post',
        data: Qs.stringify(data)
    })
}
//展示学员绑定列表
export function ShowStudents(data) {
    return request({
        url: '/personal/ShowStudent',
        method: 'post',
        data: Qs.stringify(data)
    })
}

//请假申请--(请假类型 校区名 请假申申请提交 图片上传)
export function LeaveInfo(methos, data) {
    if (methos == 'post') {
        return request({
            url: '/takeoff/POST',
            method: methos,
            data: Qs.stringify(data)
        })
    } else {
        return request({
            url: '/takeoff/get',
            method: 'get',
            params: data
        })
    }
}

// 请假图片上传
export function UpLoadImg(data) {
    return request({
        url: "/takeoff/updateImg",
        method: 'post',
        data: data
    })
}

// 获取学员详情
export function GetStuDetails(data) {
    return request({
        url: '/personal/ShowStudentDetails',
        method: 'post',
        data: Qs.stringify(data)
    })
}

// 学员详情页--获取当前帐号已绑定校区
export function LoadBindCampus(data) {
    return request({
        url: '/personal/LoadBindCampus',
        method: 'post',
        data: Qs.stringify(data)
    })
}
// 职工--获取校区
export function TgetCampusMsg(data) {
    return request({
        url: '/Tmsg/get_teacher_campus',
        method: 'get',
        params: data
    })
}

